package com.cats.template.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cats.template.sys.pojo.model.RolePermissionsModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author duxiaobo
 * @date 2021/9/247:22 下午
 */
@Mapper
public interface RolePermissionsMapper extends BaseMapper<RolePermissionsModel> {

    @Delete("delete from sys_roles_permissions where role_id = #{roleId}")
    Boolean deleteByRoleId(@Param("roleId") Long roleId);
}
